<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>${cfg.title}</title>

</head>
<style>
</style>
<body>
	<div th:include="load"></div>
	<div class="layui-row layui-col-space15 layui-anim layui-anim-upbit">
	    <div class="layui-col-md12">
	    	<div class="layui-card">
	        	<div class="layui-card-header">
					<span class="layui-breadcrumb">
                        <a><cite>${cfg.title}</cite></a>
                    </span>
        		</div> 
        		<div class="layui-card-body">
					<table id="data_table" class="layui-hide" lay-filter="data_table"></table>
	        	</div>
      		</div>
    	</div>
    </div>
    <!-- 查询 -->
	<form class="layui-form" action="" id="search_form" lay-filter="search_form"  style="padding: 20px 10px 10px 10px;display: none">
        <div class="layui-form-item">
		<#list table.fields as field>
			<div class="layui-inline">
				<label class="layui-form-label">${field.comment}</label>
				<div class="layui-input-inline">
					<input type="text" name="${field.propertyName}"  placeholder="请输入关键字" autocomplete="off" class="layui-input">
				</div>
			</div>
		</#list>
	        <div class="layui-inline" style="text-align: center;">
	            <a lay-submit  class="layui-btn lay-close-btn"  lay-filter="submitSearch">查询</a>
				<a class="layui-btn layui-btn-primary lay-reset-btn">重置</a>
	    	</div>
    	</div>
    </form>
    <!-- 新增编辑表单 -->
  	<form class="layui-form" id="data_form"  action="" lay-filter="data_form" style="padding:10px;display: none;">
		<fieldset class="layui-elem-field layui-field-title" style="color:#89b586;">
		  <legend>基本信息</legend>
		</fieldset>
		<input type="text" name="id" class="layui-input" style="display: none">
	<#list table.fields as field>
		<div class="layui-form-item">
			<label class="layui-form-label">${field.comment}</label>
			<div class="layui-input-block">
				<input type="text" name="${field.propertyName}" class="layui-input" autocomplete="off" placeholder="请输入${field.comment}">
			</div>
		</div>
	</#list>
		<div class="lay-detail lay-detail-hiden">

		</div>
		<br>
		<div class="layui-form-item" style="text-align: center;">
			<a class="layui-btn lay-submit-btn" lay-submit="" lay-filter="submitForm">立即提交</a>
			<a class="layui-btn layui-btn-primary lay-close-btn">关闭</a>
		</div>
	</form>
</body>
<script type="text/html" id="toolberLeft">
	<div class="layui-form">
		<a class="layui-btn layui-btn-sm layui-btn-primary" lay-event="add" style="margin-left: 5px;"><i class="layui-icon">&#xe654;</i>新增</a>
		<a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete" style="margin-left: 5px;"><i class="layui-icon">&#xe640;</i>删除</a>
		<a class="layui-btn layui-btn-sm" lay-event="search" style="margin-left: 5px;"><i class="layui-icon">&#xe615;</i>搜索</a>
	</div>
</script>
<script type="text/html" id="toolRow">
	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
	<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
	<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<script type="text/javascript" th:src="@{/js/${cfg.controllerUrl}/${cfg.entityMin}.js}"></script>

</html>
